import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 员工明细资料查询
export const EmployeeDetails = (parms:any) => {
    return service.post<any,any>(`/salaryFile/EmployeeList`,parms)
}

// 工种查询
export const JobQuery = (parms:any) => {
    return service.post<any,any>(`/Employee/getWorkTypeList`,parms)
}

// 职务查询
export const JobInquiry = () => {
    return service.get<any,any>(`/Employee/getDutiesList`)
}

// 工种资料建档查询
export const JobDataFileInquiry = (parms:any) => {
    return service.get<any,any>(`/salaryFile/ListOfWagesForJobTypes?workType=${parms}`)
}

// 变更查询
export const ChangeQuery = (parms:any) =>{
    return service.post<any,any>(`/salaryFile/ChangeQuery`,parms)
}

// 变更确认
export const ChangeConfirmation = (parms:any) => {
    return LoginWork.post<any,any>(`/salaryFile/ChangeConfirmation`,parms)
}

// 插入
export const interposition = (parms:any) => {
    return LoginWork.put<any,any>(`/salaryFile/JobTypeSalaryUpdate`,parms)
}

// 工种变更查询
export const JobChangeInquiry = (parms:any) => {
    return service.post<any,any>(`/salaryFile/JobTypeChangeInquiry`,parms)
}

// 工种建档查询
export const TypeOfWorkFileInquiry = (parms:any) => {
    return service.post<any,any>(`/salaryFile/JobTypeFilingQuery`,parms)
}

// 工种建档插入
export const WorkTypeFileInsertion = (parms:any) => {
    return LoginWork.post<any,any>(`/salaryFile/JobTypeFilingAdd`,parms)
}

// 工种建档删除
export const JobFileDeleted = (workTypeSeq:string) => {
    return LoginWork.post<any,any>(`/salaryFile/JobTypeFilingDel?workTypeSeq=${workTypeSeq}`)
}

// 工种建档修改
export const TypeOfWorkFileModification = (parms:any) => {
    return LoginWork.post<any,any>(`/salaryFile/JobTypeFilingUpdate`,parms)
}